#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	FILE* pf = fopen("test.txt", "r");
	if (pf == NULL)
	{
		perror("fopen()");
		return 1;
	}

	/*fseek(pf, 3, SEEK_SET);
	int ch = fgetc(pf);
	printf("%c\n", ch);*/

	/*fseek(pf, -3, SEEK_END);
	int ch = fgetc(pf);
	printf("%c\n", ch);*/

	int ch = fgetc(pf);

	fseek(pf, 2, SEEK_CUR);

	ch = fgetc(pf);
	printf("%c\n", ch);

	fclose(pf);
	pf = NULL;
	return 0;
}